/*
 * Page1.java
 *
 * Created on __DATE__, __TIME__
 */

package forms;

/**
 *
 * @author  Tom Lutze
 */
public class Page1 extends javax.swing.JPanel {

	private StartForm tabbedPane;

	/** Creates new form Page1 */
	public Page1(StartForm tabbedPane) {

		this.tabbedPane = tabbedPane;
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		jLabel2 = new javax.swing.JLabel();
		jButton1 = new javax.swing.JButton();

		setPreferredSize(new java.awt.Dimension(845, 600));

		jScrollPane1.setBorder(null);

		jTextArea1.setBackground(new java.awt.Color(240, 240, 240));
		jTextArea1.setColumns(20);
		jTextArea1.setEditable(false);
		jTextArea1.setLineWrap(true);
		jTextArea1.setRows(5);
		jTextArea1
				.setText("Pansharpening ist eine Bildverarbeitungstechnik der Geod\u00e4tischen Luftbildauswertung, bei der aus einem hochaufgel\u00f6stem Panchromatischem Bild und einem niedrig aufgel\u00f6stem Farbbild, ein hochaufgel\u00f6stes Farbbild erzeugt wird.");
		jTextArea1.setWrapStyleWord(true);
		jTextArea1.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Was ist Pansharpening?"));
		jScrollPane1.setViewportView(jTextArea1);

		jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/resources/app_descriptionimage.jpg"))); // NOI18N

		jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/resources/Actions-go-next-icon.png"))); // NOI18N
		jButton1.setText("Weiter");
		jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(
														jScrollPane1,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														800, Short.MAX_VALUE)
												.addComponent(jLabel2)
												.addComponent(
														jButton1,
														javax.swing.GroupLayout.Alignment.TRAILING))
								.addContainerGap()));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(jScrollPane1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addGap(18, 18, 18)
								.addComponent(jLabel2)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
										106, Short.MAX_VALUE)
								.addComponent(jButton1).addContainerGap()));
	}// </editor-fold>
	//GEN-END:initComponents

	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		tabbedPane.setTabbedIndexForward();
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton jButton1;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JTextArea jTextArea1;
	// End of variables declaration//GEN-END:variables

}